package com.pcbly.web.components.license;

import java.io.Serializable;

public class Client implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1287281596061763567L;
	
	private String name;
	
	private String company;
	
	private String url;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;
		Client client = (Client) o;
		if (company == null ? client.company != null : !company
				.equals(client.company))
			return false;
		return name == null ? client.name == null : name.equals(client.name);
	}

	public int hashCode() {
		int result = name == null ? 0 : name.hashCode();
		result = 11 * result + (company == null ? 0 : company.hashCode());
		return result;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Client");
		sb.append("{name='").append(name).append('\'');
		sb.append(", company='").append(company).append('\'');
		sb.append(", url='").append(url).append('\'');
		sb.append('}');
		return sb.toString();
	}

	

	public Client() {
	}

	public Client(String name, String company) {
		this.name = name;
		this.company = company;
	}

	public Client(String name, String company, String url) {
		this.name = name;
		this.company = company;
		this.url = url;
	}
}
